package com.jg.mapper;

import com.jg.dto.StuParam;
import com.jg.entity.Student;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 86130
* @description 针对表【student(学生信息表)】的数据库操作Mapper
* @createDate 2025-06-20 13:25:51
* @Entity com.jg.entity.Student
*/
@Mapper
public interface StudentMapper {
    //查询所有学生信息
    List<Student> findAll(@Param("stuParam") StuParam stuParam);

    //删除学生信息
    int delete(Integer studentId);

    int add(@Param("stu") Student student);

    Student findById(@Param("studentId") Integer studentId);

    int update(Student student);
}
